package o;

import android.content.Context;
import com.huawei.hms.framework.network.restclient.hianalytics.HianalyticsData;
import o.eqa.a;
import o.eqa.b;

public class est extends esh {
    private static long ˋ;

    public static long ˋ() {
        return ˋ;
    }

    public static void ॱ() {
        eqa.ˊ(ContentManager.getInstant().getContext(), new a() {
            public void ˊ(b bVar) {
                if (bVar != null && bVar.ˎ() > est.ˋ) {
                    est.ˋ = bVar.ˎ();
                }
            }
        });
    }

    public static void ˋ(final String str) {
        final esb ˊ = esd.ˊ(est.class);
        eqa.ˊ(ContentManager.getInstant().getContext(), new a() {
            public void ˊ(b bVar) {
                if (bVar != null) {
                    String str = str + "_" + String.valueOf(bVar.ˎ());
                    ese.ˋ(ˊ, str);
                }
            }
        });
    }

    public static void ˎ() {
        final esb ˊ = esd.ˊ(est.class);
        if (ˋ != 0) {
            ese.ˋ(ˊ, "0000_" + String.valueOf(ˋ()));
            return;
        }
        eqa.ˊ(ContentManager.getInstant().getContext(), new a() {
            public void ˊ(b bVar) {
                if (bVar != null) {
                    est.ˋ = Math.max(est.ˋ, bVar.ˎ());
                    ese.ˋ(ˊ, "0000_" + String.valueOf(est.ˋ));
                }
            }
        });
    }

    public static void ॱॱ() {
        esb ˊ = esd.ˊ(est.class);
        if (ˋ == 0) {
            Context ˋ = ContentManager.getInstant().getContext();
            b ˊ2 = eqa.ˊ(ˋ.getPackageName(), ˋ);
            if (ˊ2 != null) {
                ˋ = ˊ2.ˎ();
            }
        }
        ese.ˋ(ˊ, "0000_" + String.valueOf(ˋ));
    }

    protected String[] ˊ() {
        return new String[]{HianalyticsData.ERROR_CODE};
    }

    public String ˏ() {
        return cdj.ˏ() + "014";
    }
}
